home *** CD-ROM | disk | FTP | other *** search
/ Freelog 121 / FreelogMagazineJuilletAout2014-No121.iso / Outils / Adobe-Air / adobe-air_13.exe / [0] / setup.swf / scripts / _SWFLoaderStyle.as < prev    next >
Text File  |  2014-03-27  |  1KB  |  40 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.skins.halo.BrokenImageBorderSkin;
  5.    import mx.styles.CSSStyleDeclaration;
  6.    import mx.styles.StyleManager;
  7.    
  8.    public class _SWFLoaderStyle
  9.    {
  10.       
  11.       private static var _embed_css_Assets_swf___brokenImage_580825399:Class = _SWFLoaderStyle__embed_css_Assets_swf___brokenImage_580825399;
  12.        
  13.       
  14.       public function _SWFLoaderStyle()
  15.       {
  16.          super();
  17.       }
  18.       
  19.       public static function init(param1:IFlexModuleFactory) : void
  20.       {
  21.          var fbs:IFlexModuleFactory = param1;
  22.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("SWFLoader");
  23.          if(!style)
  24.          {
  25.             style = new CSSStyleDeclaration();
  26.             StyleManager.setStyleDeclaration("SWFLoader",style,false);
  27.          }
  28.          if(style.defaultFactory == null)
  29.          {
  30.             style.defaultFactory = function():void
  31.             {
  32.                this.brokenImageSkin = _embed_css_Assets_swf___brokenImage_580825399;
  33.                this.borderStyle = "none";
  34.                this.brokenImageBorderSkin = BrokenImageBorderSkin;
  35.             };
  36.          }
  37.       }
  38.    }
  39. }
  40.